package cn.dxc.demo.common;

import io.swagger.annotations.ApiModel;

import java.util.HashMap;

@ApiModel("通用返回类")
public class ResultMapUtil {


    /**
     * 返回结果
     *
     * @param msg
     * @param code 1 正确 其他:错误
     * @return
     */

    public static HashMap<String, Object> getHashMapInfo(Object msg, Object code,Object tips) {
        HashMap<String, Object> resultMap = new HashMap<>();
        resultMap.put("msg", msg);
        resultMap.put("code", code);
        resultMap.put("tips", tips);

        return resultMap;
    }
}